///引入共享头部
import '../../../common/shard.dart';

class ExamplePage extends StatelessWidget {
	const ExamplePage({Key? key}) : super(key: key);

	@override
	Widget build(BuildContext context) {
		return CustomCupertinoScaffold(
			titleText: "插件示例",
			navBackgroundColor: Theme.of(context).primaryColor,
			body: SingleChildScrollView(
				child: Column(
					children:  [
						ListTile(
							title: const Text('图片加载与缓存'),
							subtitle: const Text('widget/cache_image.dart'),
							onTap: (){
								Get.toNamed("/example/cache_image");
							},
						),
						ListTile(
							title: const Text('图片裁剪'),
							subtitle: const Text('widget/cropper_image.dart'),
							onTap: (){
								Get.toNamed("/example/cropper_image");
							},
						),
						ListTile(
							title: const Text('媒体播放器'),
							subtitle: const Text('widget/media_preview.dart'),
							onTap: (){
								Get.toNamed("/example/media_preview");
							},
						),
						ListTile(
							title: const Text('数字动画'),
							subtitle: const Text('widget/number_animation.dart'),
							onTap: (){
								Get.toNamed("/example/number_animation");
							},
						),
						ListTile(
							title: const Text('长文本展开收起'),
							subtitle: const Text('widget/expandable_text.dart'),
							onTap: (){
								Get.toNamed("/example/expandable_text");
							},
						),
						ListTile(
							title: const Text('媒体选取和拍摄'),
							subtitle: const Text('utils/assets_picker.dart'),
							onTap: (){
								Get.toNamed("/example/assets_picker");
							},
						),
						ListTile(
							title: const Text('图片渐进加载'),
							subtitle: const Text('package:progressive_image'),
							onTap: (){
								Get.toNamed("/example/progressive_image");
							},
						),
						ListTile(
							title: const Text('弹性上拉（下拉）面板'),
							subtitle: const Text('package:snapping_sheet'),
							onTap: (){
								Get.toNamed("/example/snapping_sheet");
							},
						),
						ListTile(
							title: const Text('动画展开式搜索栏'),
							subtitle: const Text('package:material_floating_search_bar'),
							onTap: (){
								Get.toNamed("/example/material_floating_search_bar");
							},
						),
						ListTile(
							title: const Text('图片剪切蒙版'),
							subtitle: const Text('package:widget_mask'),
							onTap: (){
								Get.toNamed("/example/image_shape");
							},
						),
					],
				)
			),
		);
	}
}
